(1) First do the following declaration.
#include <AgbSound.h> #include <AgbSystemCall.h> SoundArea sndwrk; // Work Area (the variable name sndwrk is arbitrary)
(2) Execute the following with the initialization routine after reset. SoundDriverInit(&sndwrk);
(3) Call the following function immediately following each V blank interrupt. SoundDriverVSync();
(4) Call the following function during each V sync(every 1/60 second). SoundDriverMain();
(5) If the preceding functions have been called, if you set an appropriate value for the |
[ | Back | Programmer's Manual Table of Contents | Using AGB Direct Sound Driver Table of Contents | Next | ]